/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2025-01-20 01:04:43
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2025-05-22 17:39:03
 * @FilePath: /vue-element-admin/src/router/modules/menu.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/** When your routing table is too long, you can split it into small modules **/

import Layout from "@/layout";
// const menusRouter = store.getters && store.getters.menusRouter
const menusRouter= [
        {
          path: "/orderManagement",
          component: Layout,
          redirect: "/orderManagement/page",
          alwaysShow: true, // will always show the root menu
          name: "orderManagement",
          label: "订单管理",
          id: "318",
          meta: {
            title: "订单管理",
            icon: "el-icon-s-order",
            // roles: ['admin', 'editor'] // you can set roles in root nav
          },
          children: [
            {
              path: "statistics",
              component: () => import("@/views/dashboard/index"),
              label: "订单统计",
              id: "321",
              name: "statistics",
              meta: { title: "订单统计", icon: "el-icon-s-data", noCache: true },
            },
            {
              path: "addOrder",
              component: () => import("@/views/orderManagement/addOrder/index"),
          // component: () => import("@/views/dashboard/index"),

              label: "新增订单",
              id: "319",
              name: "addOrder",
              meta: {
                title: "新增订单",
                icon: "el-icon-circle-plus",
                // roles: ['admin']
              },
            },
          
          ],
        },
      
        {
          path: "/customerInformationManagement",
          component: Layout,
          redirect: "/customerInformationManagement/index",
          alwaysShow: true, // will always show the root menu
          id: "320",
          label: "客户管理",
          name: "customerInformationManagement",
          meta: {
            title: "客户管理",
            icon: "el-icon-s-custom",
            // roles: ['admin', 'editor'] // you can set roles in root nav
          },
          children: [
            {
              path: "statistics",
              component: () =>
                import("@/views/customerInformationManagement/statistics/index"),
              
              label: "客户统计",
              id: "321",
              name: "statistics",
              meta: { title: "客户统计", icon: "el-icon-user-solid", noCache: true },
            },
            {
              path: "customerInformation",
              component: () =>
                import(
                  "@/views/customerInformationManagement/customerInformation/index"
                ),
              id: "322",
              label: "客户信息管理",
              name: "customerInformation",
              meta: { title: "客户信息管理", icon: "el-icon-folder-opened", noCache: true },
            },
          ],
        },
        {
          path: "/warehouseManagement",
          component: Layout,
          redirect: "/warehouseManagement/page",
          alwaysShow: true, // will always show the root menu
          label: "库存管理",
          id: "323",
          name: "warehouseManagement",
          meta: {
            title: "库存管理",
            icon: "el-icon-s-shop",
            // roles: ['admin', 'editor'] // you can set roles in root nav
          },
          children: [
            {
              path: "statistics",
              component: () =>
                import("@/views/warehouseManagement/statistics/index"),
              label: "库存统计",
              id: "324",
              name: "CustomerInformation",
              meta: { title: "库存统计", icon: "el-icon-data-analysis", noCache: true },
            },
            {
              path: "outOfStock",
              component: () => import("@/views/warehouseManagement/outOfStock/index"),
              label: "出库管理",
              id: "325",
              name: "outOfStock",
              meta: {
                title: "出库管理",
                icon: "el-icon-s-fold", 
                // roles: ['admin']
              },
            },
            {
              path: "outOfStockDetail",
              component: () => import("@/views/warehouseManagement/outOfStockDetail/index"),
              label: "出库记录",
              id: "349",
              name: "outOfStockDetail",
              meta: {
                title: "出库记录",
                icon: "el-icon-date", 
                // roles: ['admin']
              },
            },
            {
              path: "warehousing",
              component: () =>
                import("@/views/warehouseManagement/warehousing/index"),
              label: "入库管理",
              id: "326",
              name: "warehousing",
              meta: {
                title: "入库管理",
                // roles: ['admin']
                icon: "el-icon-s-unfold", 
              },
            },
            {
              path: "warehousingDetail",
              component: () =>
                import("@/views/warehouseManagement/warehousingDetail/index"),
              label: "入库记录",
              id: "348",
              name: "warehousingDetail",
              meta: {
                title: "入库记录",
                icon: "el-icon-date", 
                // roles: ['admin']
              },
            },
            {
              path: "settingMaterial",
              component: () =>
                import("@/views/warehouseManagement/settingMaterial/index"),
              label: "物料配置",
              id: "326",
              name: "settingMaterial",
              meta: {
                title: "物料配置",
                icon: "el-icon-s-operation", 
                // roles: ['admin']
              },
            },

            
          ],
        },
      
        {
          path: "/financialManagement",
          component: Layout,
          redirect: "/financialManagement/index",
          alwaysShow: true, // will always show the root menu
          label: "财务管理",
          id: "327",
          name: "financialManagement",
          meta: {
            title: "财务管理",
            icon: "money",
            // roles: ['admin', 'editor'] // you can set roles in root nav
          },
          children: [
            {
              path: "statistics",
              component: () =>
                import("@/views/financialManagement/statistics/index"),
              label: "财务统计",
              id: "328",
              name: "CustomerInformation",
              meta: { title: "财务统计", icon: "el-icon-pie-chart", noCache: true },
            },
            {
              path: "income",
              component: () => import("@/views/financialManagement/income/index"),
              label: "门店收入",
              id: "329",
              name: "income",
              meta: { title: "门店收入", icon: "el-icon-sell", noCache: true },
            },
            {
              path: "disburse",
              component: () => import("@/views/financialManagement/disburse/index"),
              label: "门店支出",
              name: "disburse",
              id: "330",
              meta: { title: "门店支出", icon: "el-icon-sold-out", noCache: true },
            },
            {
              path: "withdraw",
              component: () => import("@/views/financialManagement/withdraw/index"),
              label: "门店提现",
              id: "331",
              name: "withdraw",
              meta: { title: "门店提现", icon: "el-icon-s-finance", noCache: true },
            },
            {
              path: "balanceRecord",
              component: () =>
                import("@/views/financialManagement/balanceRecord/index"),
              label: "余额记录",
              id: "332",
              name: "balanceRecord",
              meta: { title: "余额记录", icon: "el-icon-edit-outline", noCache: true },
            },
          ],
        },
        {
          path: "/authorityManagement",
          component: Layout,
          redirect: "/authorityManagement/index",
          alwaysShow: true, // will always show the root menu
          label: "设置",
          id: "333",
          name: "authorityManagement",
          meta: {
            title: "设置",
            icon: "el-icon-s-tools",
            // roles: ['admin', 'editor'] // you can set roles in root nav
          },
          children: [
            {
              path: "orderSetting",
              component: () => import("@/views/authorityManagement/index"),
              label: "订单设置",
              id: "334",
              name: "orderSetting",
              meta: { title: "订单设置", icon: "el-icon-set-up", noCache: true },
              redirect: "/orderSetting/page",
              alwaysShow: true, // will always show the root menu
              children: [
                {
                  path: "orderSettingList",
                  component: () =>
                    import(
                      "@/views/authorityManagement/orderSetting/orderSettingList/index"
                    ),
                  label: "配置订单",
                  id: "335",
                  name: "orderSettingList",
                  meta: {
                    title: "配置订单",
                    icon: "el-icon-tickets",
                    // roles: ['admin']
                  },
                },
              ],
            },
            {
              path: "/storeSetting",
              redirect: "/storeSetting/page",
              alwaysShow: true, // will always show the root menu
              component: () => import("@/views/authorityManagement/index"),
              label: "门店设置",
              id: "336",
              name: "storeSetting",
              meta: {
                title: "门店设置",
                icon: "el-icon-office-building",
                // roles: ['admin', 'editor'] // you can set roles in root nav
              },
              children: [
                {
                  path: "product",
                  component: () =>
                    import("@/views/authorityManagement/storeSetting/product/index"),
                  label: "产品",
                  id: "337",
                  name: "product",
                  meta: {
                    title: "产品",
                icon: "el-icon-takeaway-box",
                    // roles: ['admin']
                  },
                },
                {
                  path: "serviceScheme",
                  component: () =>
                    import(
                      "@/views/authorityManagement/storeSetting/serviceScheme/index"
                    ),
                  label: "服务方案",
                  id: "338",
                  name: "serviceScheme",
                  meta: {
                    title: "服务方案",
                icon: "el-icon-document",
                    // roles: ['admin']
                  },
                },
                {
                  path: "cineraryUrn",
                  component: () =>
                    import(
                      "@/views/authorityManagement/storeSetting/cineraryUrn/index"
                    ),
                  label: "骨灰盅",
                  id: "339",
                  name: "cineraryUrn",
                  meta: {
                    title: "骨灰盅",
                icon: "el-icon-help",
                    // roles: ['admin']
                  },
                },
                {
                  path: "weightRange",
                  component: () =>
                    import(
                      "@/views/authorityManagement/storeSetting/weightRange/index"
                    ),
                  label: "体重区间",
                  id: "340",
                  name: "weightRange",
                  meta: {
                    title: "体重区间",
                icon: "el-icon-data-line",
                    // roles: ['admin']
                  },
                },
              ],
            },
            {
              path: "permissionSetting",
              // component: () => import('@/views/authorityManagement/accountManagement/index'),
              component: () => import("@/views/authorityManagement/index"),
              redirect: "/permissionSetting/page",
              label: "权限设置",
              id: "341",
              name: "permissionSetting",
              meta: { title: "权限设置", icon: "el-icon-open", noCache: true },
              children: [
                {
                  path: "accountManagement",
                  component: () =>
                    import(
                      "@/views/authorityManagement/permissionSetting/accountManagement/index"
                    ),
                  label: "店员账号管理",
                  id: "342",
                  name: "accountManagement",
                  meta: { title: "店员账号管理", icon: "el-icon-user", noCache: true },
                },
                {
                  path: "administratorList",
                  component: () =>
                    import(
                      "@/views/authorityManagement/permissionSetting/administratorList/index"
                    ),
                  label: "管理员列表",
                  id: "343",
                  name: "administratorList",
                  meta: { title: "管理员列表", icon: "el-icon-s-check", noCache: true },
                },
                {
                  path: "rolesManagement",
                  component: () =>
                    import(
                      "@/views/authorityManagement/permissionSetting/rolesManagement/index"
                    ),
                  label: "角色管理",
                  id: "344",
                  name: "rolesManagement",
                  meta: { title: "角色管理", icon: "el-icon-s-opportunity", noCache: true },
                },
              ],
            },
          ],
        },
     ]

export default menusRouter;
